## API Report File for "@backstage/core-compat-api"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts
import { AnalyticsApi } from '@backstage/core-plugin-api';
import { AnalyticsApi as AnalyticsApi_2 } from '@backstage/frontend-plugin-api';
import { AnalyticsEvent } from '@backstage/core-plugin-api';
import { AnalyticsEvent as AnalyticsEvent_2 } from '@backstage/frontend-plugin-api';
import { AnyRouteRefParams } from '@backstage/core-plugin-api';
import { ExternalRouteRef } from '@backstage/core-plugin-api';
import { ExternalRouteRef as ExternalRouteRef_2 } from '@backstage/frontend-plugin-api';
import { FrontendFeature } from '@backstage/frontend-plugin-api';
import { default as React_2 } from 'react';
import { ReactNode } from 'react';
import { RouteRef } from '@backstage/core-plugin-api';
import { RouteRef as RouteRef_2 } from '@backstage/frontend-plugin-api';
import { SubRouteRef } from '@backstage/core-plugin-api';
import { SubRouteRef as SubRouteRef_2 } from '@backstage/frontend-plugin-api';

// @public
export function compatWrapper(element: ReactNode): React_2.JSX.Element;

// @public (undocumented)
export function convertLegacyApp(
  rootElement: React_2.JSX.Element,
): FrontendFeature[];

// @public
export function convertLegacyRouteRef<TParams extends AnyRouteRefParams>(
  ref: RouteRef<TParams>,
): RouteRef_2<TParams>;

// @public
export function convertLegacyRouteRef<TParams extends AnyRouteRefParams>(
  ref: SubRouteRef<TParams>,
): SubRouteRef_2<TParams>;

// @public
export function convertLegacyRouteRef<
  TParams extends AnyRouteRefParams,
  TOptional extends boolean,
>(
  ref: ExternalRouteRef<TParams, TOptional>,
): ExternalRouteRef_2<TParams, TOptional>;

// @public
export function convertLegacyRouteRefs<
  TRefs extends {
    [name in string]: RouteRef | SubRouteRef | ExternalRouteRef;
  },
>(
  refs: TRefs,
): {
  [KName in keyof TRefs]: ToNewRouteRef<TRefs[KName]>;
};

// @public
export class MultipleAnalyticsApi implements AnalyticsApi, AnalyticsApi_2 {
  captureEvent(event: AnalyticsEvent | AnalyticsEvent_2): void;
  static fromApis(
    actualApis: (AnalyticsApi | AnalyticsApi_2)[],
  ): MultipleAnalyticsApi;
}

// @public
export class NoOpAnalyticsApi implements AnalyticsApi, AnalyticsApi_2 {
  // (undocumented)
  captureEvent(_event: AnalyticsEvent | AnalyticsEvent_2): void;
}

// @public
export type ToNewRouteRef<T extends RouteRef | SubRouteRef | ExternalRouteRef> =
  T extends RouteRef<infer IParams>
    ? RouteRef_2<IParams>
    : T extends SubRouteRef<infer IParams>
    ? SubRouteRef_2<IParams>
    : T extends ExternalRouteRef<infer IParams, infer IOptional>
    ? ExternalRouteRef_2<IParams, IOptional>
    : never;

// (No @packageDocumentation comment for this package)
```
